import { createSSRApp } from 'vue'
import App from './App.vue'
import { userState } from './services/user'
import { ttsState } from './services/tts'

export function createApp() {
  const app = createSSRApp(App)
  
  // 注册全局状态
  app.config.globalProperties.$user = userState
  app.config.globalProperties.$tts = ttsState
  
  return {
    app
  }
}